﻿#region Using directives
using System;
using System.ComponentModel;
using System.Web.Script.Services;
using System.Web.Services;
using ProcolDemo.Majors;

#endregion

namespace ProcolDemo.Proxies {
    /// <summary>
    /// Summary description for MajorsProxy
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    [ScriptService]
    public class MajorsProxy : WebService {
        private readonly MajorService majors = new MajorService();

        [WebMethod]
        public String[] GetMajors(string prefixText, int count) {
            return majors.GetMajors(prefixText, count);
        }
    }
}